
public class CheckerMaterial extends Material {
	public double scale;
	
	public CheckerMaterial(double s, double r)
	{
		scale = s;
		reflectiveness = r;
	}
	
	@Override
	public Color3 sample(Ray3 ray, Vector3 position, Vector3 normal) {
		return Math.abs((int)(Math.floor(position.x * 0.1) + Math.floor(position.z * scale)) % 2) < 1 
		? Color3.black() : new Color3(0.6, 0.6, 0.6);
		
	}

}
